package cn.itcast.www.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "test_class")
public class TestClass implements java.io.Serializable {
	
	private String textID;		//测试ID
	private String textName;	//测试名称
	private Date textDate;		//测试日期
	private String textRemark;	//测试备注
	
	@Id
	@GenericGenerator(name="system-uuid",strategy = "uuid")
	@GeneratedValue(generator="system-uuid")
	/*@Id @GeneratedValue(strategy = GenerationType.AUTO)*/
	public String getTextID() {
		return textID;
	}
	
	public void setTextID(String textID) {
		this.textID = textID;
	}
	
	@Column
	public String getTextName() {
		return textName;
	}
	
	public void setTextName(String textName) {
		this.textName = textName;
	}
	
	@Column(columnDefinition="DATE")
	public Date getTextDate() {
		return textDate;
	}
	
	public void setTextDate(Date textDate) {
		this.textDate = textDate;
	}
	
	@Column
	public String getTextRemark() {
		return textRemark;
	}
	
	public void setTextRemark(String textRemark) {
		this.textRemark = textRemark;
	}
		
}

